Translation:

2. Thus when they fulfil their term appointed either take them back on equitable terms or part with them on equitable terms; and take for witness two persons from among you endued with justice and establish the evidence (as) before Allah. Such is the admonition given to him who believes in Allah and the Last Day. And for those who fear Allah He (ever) prepares a way out

Notes (Tafseer)

5509. Cf. ii. 231. Everything should be done fairly and squarely, and all interests should be safeguarded.

5510. Publicity and the establishment of proper evidence ensure that no one will act unjustly or selfishly. All should remember that these are matters of serious import, affecting our most intimate lives, and therefore our position in the next life.

5511. In these very delicate and difficult matters, the wisdom of jurists provides a less satisfactory solution than a sincere desire to be just and true, which is described as the "fear of Allah". Where such a desire exists, Allah often provides a solution in the most unexpected ways or from the most unexpected quarters; e.g., the worst enemies may be reconciled, or the cry or the smile of an infant baby may heal seemingly irreparable injuries or unite hearts seemingly alienated for ever. And Faith is followed at once by a psychological feeling of rest for the troubled spirit.